home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Communication / NewsBase / Source / ITreeBrowser.h < prev    next >
Text File  |  1993-01-12  |  3KB  |  79 lines

  1. /*$Copyright:
  2.  * Copyright (C) 1992.5.22. Recruit Co.,Ltd. 
  3.  * Institute for Supercomputing Research
  4.  * All rights reserved.
  5.  * NewsBase  by ISR, Kazuto MIYAI, Gary ARAKAKI, Katsunori SUZUKI, Kok-meng Lue
  6.  *
  7.  * You may freely copy, distribute and reuse the code in this program under 
  8.  * following conditions.
  9.  * - to include this notice in the source code, if it is to be distributed 
  10.  *   with source code.
  11.  * - to add the file named "COPYING" within the code, which shall include 
  12.  *   GNU GENERAL PUBLIC LICENSE(*).
  13.  * - to display an acknowledgement in binary code as follows: "This product
  14.  *   includes software developed by Recruit Co.,Ltd., ISR."
  15.  * - to display a notice which shall state that the users may freely copy,
  16.  *   distribute and reuse the code in this program under GNU GENERAL PUBLIC
  17.  *   LICENSE(*)
  18.  * - to indicate the way to access the copy of GNU GENERAL PUBLIC LICENSE(*)
  19.  *
  20.  *   (*)GNU GENERAL PUBLIC LICENSE is stored in the file named COPYING
  21.  * 
  22.  * THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  23.  * WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  24.  * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  25. $*/
  26. #import <appkit/NXBrowser.h>
  27.  
  28. //typedef    enum {TreeMode, FlatMode} BrowserMode;
  29. /*
  30.    To create a tree browser window create an instance of ITreeBrowser.
  31.    This object will then load the browser interface.  Multiple browser
  32.    windows are allowed.  
  33. */
  34.  
  35. @interface ITreeBrowser:NXBrowser
  36. {
  37.     id        iIOmodule;
  38.     id        iDataGroupUIF;
  39.     id        iItemRepUIF;
  40.     id        iItemUIF;
  41.     id        iRootListnode;
  42.     id        iAuxAgent;
  43.     SEL        iAuxAction;
  44. }
  45.  
  46. - initFrame:(NXRect *)frameRect;
  47.  
  48. /* set UIF env. */
  49. - (void)setIOmodule:io_module;
  50. - iOmodule;
  51. - (void)setDataGroupUIF:uif_module;
  52. - (void)setItemRepUIF:uif_module;
  53. - (void)setItemUIF:uif_module;
  54. - setRootListnode:node;
  55.  
  56. - (int)browser:sender fillMatrix:matrix inColumn:(int)column;
  57. - (void)leafPreHandler:sender;
  58. - (void)leafHandler:sender;
  59. - (void)togglePreHandler:sender;
  60. - (void)toggleHandler:sender;
  61.  
  62. // for aux agent
  63. // auxAgent is a agent that is called when mouse click is occuered in 
  64. // this NXBrowser
  65. // now it is used for displaying newsgorup folder above newsgroup
  66. // browser.
  67. // do nothing without setting iAuxAgent by "-setAuxAgent".
  68. - setAuxAgent:auxAgent;
  69. - auxAgent;
  70. - setAuxAction:(SEL)auxAction;
  71. - (SEL)auxAction;
  72.  
  73. /* method that may be overridden to customize browser cell image. */
  74. /* if the node should not be loaded, return NULL */
  75. - (void)loadCell:cell fromNode:childNode;
  76. /* action of directory */
  77. - directoryHandler:node;
  78. @end
  79.